package jvm.c5_gc;

/*
* jdk1.4 CMS
* 1.7 G1
* 1.8默认 PS + PO
* 1.9默认G1
*
* */
public class LambdaGC {
    public static void main(String[] args) {
        //方法没结束，一直往方法区里面装
        for(;;) {
            I i = C::n;
        }
    }

    public static interface I {
        void m();
    }

    public static class C {
        static void n() {
            System.out.println("hello");
        }
    }
}
